import com.intellij.openapi.actionSystem.AnAction;
import com.intellij.openapi.actionSystem.AnActionEvent;
import com.intellij.openapi.actionSystem.PlatformDataKeys;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.ui.Messages;

/**
 * https://www.cnblogs.com/milovetingting/p/12853621.html
 *
 * @author jiaohongtao
 */
public class Test extends AnAction {

    @Override
    public void actionPerformed(AnActionEvent e) {
        // TODO: insert action logic here
        // 获取当前操作工程的上下文
        Project project = e.getData(PlatformDataKeys.PROJECT);
        String title = "写代码别变成机器了";
        String message = "多说话 多说话 少说废话哦\n多说话 多说话 少说废话哦";

        // 显示对话框
        Messages.showMessageDialog(project, message, title, Messages.getInformationIcon());
    }
}
